package com.yunxin.core.infra.persistence.mapper.warn;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunxin.core.domain.external.warn.WarnUserPageDTO;
import com.yunxin.core.domain.external.warn.WarnUserPageResultDTO;
import com.yunxin.core.domain.model.warn.WarnUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 告警通知user Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
@DS("core")
public interface WarnUserMapper extends BaseMapper<WarnUser> {

    List<WarnUser> selectUserByType(@Param("type") int type);

    Page<WarnUserPageResultDTO> selectWarnUserPage(Page<WarnUserPageResultDTO> pages, @Param("userPageDTO") WarnUserPageDTO userPageDTO);
}
